//
//  UserModel.swift
//  TJJPT
//
//  Created by FENGYL on 2017/5/10.
//  Copyright © 2017年 FENGYL. All rights reserved.
//

import UIKit

class UserModel: NSObject {
    
    static let userModel = UserModel()
    
    var userName:String? = ""
    
    var id:NSNumber?
    
    var clientType:NSNumber?
    
    var tokenPass:String? = ""
    
    var devicesByAccountArray:NSArray?
    
    var selectedDeviceSerialNumber:String = ""
    
    var lastStatusDataArray:NSArray?
    
    var lastConectedDate:Date?
    
    var lastTrackPoiDataBySnsArray:NSArray?
    
    var selectedMap:String? = {
    
        var map = LOCALIZABLE_STRING_BAIDU_MAP
        
        if (UserDefaults.standard.value(forKey: USER_DEFAULTS_SELECTED_MAP) != nil){
            
            map = UserDefaults.standard.value(forKey: USER_DEFAULTS_SELECTED_MAP) as! String
            
        }
        
        
        
        return map
    
    }()
    
}
